package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(255)"`
	Password string `gorm:"type:varchar(255)"`
}
type Role struct {
	gorm.Model
	Name  string `gorm:"type:varchar(50)"`
	Pine  string `gorm:"type:varchar(50)"`
	User  string `gorm:"type:varchar(50)"`
	Email string `gorm:"type:varchar(50)"`
	State string `gorm:"type:varchar(50)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	Name string `gorm:"type:varchar(50)"`
	Text string `gorm:"type:text"`
}
type NodeRes struct {
	gorm.Model
	Nid int `gorm:"type:int(12)"`
	Rid int `gorm:"type:int(12)"`
}
type Res struct {
	gorm.Model
	Title string `gorm:"type:varchar(50)"`
	Text  string `gorm:"type:text"`
}
type Car struct {
	gorm.Model
	Static string `gorm:"type:varchar(50)"`
	Pan    string `gorm:"type:varchar(50)"`
}
type Hou struct {
	gorm.Model
	Data  string `gorm:"type:varchar(50)"`
	Xin   string `gorm:"type:varchar(50)"`
	CarId string `gorm:"type:varchar(50)"`
}
type CarHou struct {
	HId    int    `gorm:"type:int(12)"`
	Static string `gorm:"type:varchar(50)"`
	Pan    string `gorm:"type:varchar(50)"`
	Data   string `gorm:"type:varchar(50)"`
	Xin    string `gorm:"type:varchar(50)"`
}
